﻿@using Telerik.Web.Mvc.UI
@model qltscd.Models.BaseClient.DanhMucNhomNguoiDung
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/Modules/_LayoutTacVuNhapLieu.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Create", "DanhMucNhomNguoiDung", FormMethod.Post))
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(o=>o.IdentityNhomNguoiDung)                             
    <fieldset>
    <legend>Danh Mục Nhóm Người Dùng</legend>
    <table border="0" width="100%" cellpadding="10px" cellspacing="10px">
     <tr>
        <td style="margin-left: 10px;" class="label_col">
            Mã nhóm người dùng
        </td>
        <td>
            @Html.TextBoxFor(Model => Model.MaNhomNguoiDung, new { @style = "width:97%; " })
            
        </td>
    </tr>
    <tr>
        <td style="margin-left: 10px;" class="label_col">
            Tên nhóm người dùng
        </td>
        <td>
            @Html.TextBoxFor(Model => Model.TenNhomNguoiDung, new { @style = "width:97%; " })
            
        </td>
    </tr>
    <tr>
        <td style="margin-left: 10px;" class="label_col">
            Quyền
        </td>
        <td>
            @Html.TextBoxFor(Model => Model.Quyen, new { @style = "width:97%; " })
            
        </td>
    </tr>
    </table>
    </fieldset>
    <div style="text-align:center;">
            <input type="submit" value="Lưu" class="button"/>
            @Html.ActionLink("Thoát", "Index", "DanhMucNhomNguoiDung", null, new { @class = "button" })
        </div>
}
<div class="errBlock">
                    @Html.ValidationMessageFor(Model => Model.MaNhomNguoiDung, "", new { @style = "display:block" })
                   
                        @ViewData[qltscd.Contansts.SessionConstants.ERROR_MESSAGE]
                    <br />
                    @Html.ValidationMessageFor(Model => Model.TenNhomNguoiDung, "", new { @style = "display:block" })
                    @Html.ValidationMessageFor(Model => Model.Quyen, "", new { @style = "display:block" })</div>
